#ifndef NPUSHBUTTON_H
#define NPUSHBUTTON_H
#include <QtWidgets>
#include "tools/Gadget.h"

typedef enum{
    BrightSingle,
    SpecialSurround
} FormatSpecial;

class NPushButton : public QPushButton {

    Q_OBJECT

public:

    NPushButton(QWidget *parent=nullptr);

    void setFormat(QString Format=NULL, bool Enable=true);

    void setFormatText(QString Text, FormatSpecial Format);

protected:

    void enterEvent(QEnterEvent *event);

    void leaveEvent(QEvent *Event);

    void mouseReleaseEvent(QMouseEvent *Event);

private:
    Extend definfc;
    QMap<QString, QString> RdoMap_String;

signals:
    void msev_etr(QPair<bool, QString>);
    void msnm_rls(QString);

};

#endif


